package com.edgclub.edg.api.param;

import android.text.TextUtils;

//import com.guzhichat.guzhi.http.param.Params;
//import com.guzhichat.guzhi.util.CryptUtil;

import com.edgclub.edg.http.param.Params;
import com.edgclub.edg.utils.util.CryptUtil;

import java.util.TreeMap;

/**
 * 游戏参数
 * 
 *
 */
public class GameParam extends Params {
	private String userId;

	private String seqs;
	
	private String page;
	private String pageSize;
	private String gameId;
	private String score;
	private String pkUserId;
	private String key;
	
	@Override
	public TreeMap<String, String> getParams() {
		params = simpleParams();

		if (null != userId && !TextUtils.isEmpty(userId)) {
			params.put("userId", userId);
		}

		if (null != seqs && !TextUtils.isEmpty(seqs)) {
			params.put("seqs", seqs);
		}
		
		if (null != gameId && !TextUtils.isEmpty(gameId)) {
			params.put("gameId", gameId);
		}
		if (null != page && !TextUtils.isEmpty(page)) {
			params.put("page", page);
		}
		if (null != pageSize && !TextUtils.isEmpty(pageSize)) {
			params.put("pageSize", pageSize);
		}
		if (null != score && !TextUtils.isEmpty(score)) {
			params.put("score", score);
		}
		if (null != pkUserId && !TextUtils.isEmpty(pkUserId)) {
			params.put("pkUserId", pkUserId);
		}
		if (null != key && !TextUtils.isEmpty(key)) {
			params.put("key", key);
		}
		params.put("sign", CryptUtil.md5(convertParam()));
		return params;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}


	
	public String getGameId() {
		return gameId;
	}

	public void setGameId(String gameId) {
		this.gameId = gameId;
	}


	public String getSeqs() {
		return seqs;
	}

	public void setSeqs(String seqs) {
		this.seqs = seqs;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public String getPageSize() {
		return pageSize;
	}

	public void setPageSize(String pageSize) {
		this.pageSize = pageSize;
	}

	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}

	public String getPkUserId() {
		return pkUserId;
	}

	public void setPkUserId(String pkUserId) {
		this.pkUserId = pkUserId;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	
	

}
